#ifndef WARNINGLABEL_H
#define WARNINGLABEL_H

#include <QLabel>
#include <QObject>
#include <QTimer>

class WarningLabel : public QLabel
{
    Q_OBJECT
public:
    WarningLabel(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags());

    void setText(const QString &);
    // QWidget interface
protected:
    void paintEvent(QPaintEvent *event);
private:
    int m_nOffset = 0;
    QTimer m_updateTimer;
};

#endif // WARNINGLABEL_H
